import request from '@/router/axios'

export function fetchStoreDeptConfigurationList(query) {
  return request({
    url: '/mp/storedeptconfiguration/page',
    method: 'get',
    params: query
  })
}

export function addStoreDeptConfigurationObj(obj) {
  return request({
    url: '/mp/storedeptconfiguration',
    method: 'post',
    data: obj
  })
}

export function getStoreDeptConfigurationObj(id) {
  return request({
    url: '/mp/storedeptconfiguration/' + id,
    method: 'get'
  })
}

export function editShowFlog(id) {
  return request({
    url: '/mp/storedeptconfiguration/editShowFlag/' + id,
    method: 'get'
  })
}

export function editAppointmentFlag(id) {
  return request({
    url: '/mp/storedeptconfiguration/editAppointmentFlag/' + id,
    method: 'get'
  })
}

export function delStoreDeptConfigurationObj(id) {
  return request({
    url: '/mp/storedeptconfiguration/' + id,
    method: 'delete'
  })
}

export function putStoreDeptConfigurationObj(obj) {
  return request({
    url: '/mp/storedeptconfiguration',
    method: 'put',
    data: obj
  })
}
